package com.itheima;

public class TestDemo08 {
    public static void main(String[] args) {
        String s = "aa|bb|cc";
        String[] strArray = s.split("|"); //?["aa","bb","cc"]
        for (int x = 0; x < strArray.length; x++) {
            System.out.println(strArray[x]); //?aa?bb?cc
        }
    }
}
